package com.heima.anonymity;

public class HWPhone {
    public static void alarmClock(Bell b){
        b.study();
    }

    public static void main(String[] args) {
        alarmClock(()->{
            System.out.println("起床了起床了");
        });
        alarmClock(()->{
            System.out.println("来黑马学习Java了");
        });

    }
}
